package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx.goods.vo.HomeIndexVo;
import com.cskaoyan.service.wx.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname WxHomeController
 * @Description
 * @Date 2021/8/14 14:18
 * @Author : xujun
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;

    @RequestMapping("index")
    public BaseRespVo index() {

        HomeIndexVo vo = wxHomeService.index();

        return BaseRespVo.ok(vo);

    }

}
